ActiveRecord::Schema.define do
  create_table :tracks, :force => true do |tr|
    tr.column  :trackable_type,     :string
    tr.column  :trackable_id,       :integer
    tr.column  :version,            :integer
    tr.column  :record_data,        :text
    tr.column  :action,             :string
    tr.column  :created_at,         :datetime
    tr.column  :updated_by,         :integer
  end

  create_table :deleted_trackables, :force => true do |tr|
    tr.column  :trackable_type,     :string
    tr.column  :trackable_id,       :integer
    tr.column  :record_data,        :text
    tr.column  :created_at,         :datetime
    tr.column  :deleted_by,         :integer
  end

  create_table :topics, :force => true do |to|
    to.column  :name,               :string
    to.column  :created_at,         :timestamp
    to.column  :version,            :integer
    to.column  :track_versions,     :integer
  end

  create_table :questions, :force => true do |q|
    q.column  :name,               :string
    q.column  :topic_id,        :string
    q.column  :created_at,         :timestamp
    q.column  :version,            :integer
  end

end